package com.erli.exchange.core.util;

import javax.servlet.http.HttpServletResponse;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

/**
 * 
 * @Package com.erli.exchange.core.util   
 * @ClassName:  ResponseUtil   
 * @Description:TODO
 * @Author: LeeHo
 * @Date:   2019年3月16日 下午11:30:53   
 *
 */
public class ResponseUtil {

	/**
	 * 
	 * @Title: httpServletResponse   
	 * @Description: 获取当前Response对象
	 * @Author: LeeHo
	 * @Date:   2019年3月16日 下午11:30:40      
	 * @param: @return      
	 * @return: HttpServletResponse  
	 * @throws
	 */
    public static HttpServletResponse httpServletResponse() {
        return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse();
    }

}
